using YoYoMoocExampleApp.Models;

namespace YoYoMoocExampleApp.Models
{
    public class MockProductRepository : IProductRepository
    {
        private static readonly Product[] DumyData = new Product[]{
        new Product{ProductID=1,Name="Pro1",Category="Cat1",Price=100},
        new Product{ProductID=2,Name="Pro2",Category="Cat1",Price=100},
        new Product{ProductID=3,Name="Pro3",Category="Cat2",Price=100},
        new Product{ProductID=4,Name="Pro4",Category="Cat2",Price=100},
    };

        public IQueryable<Product> Products => DumyData.AsQueryable();

    }
}
